<?php

namespace seecms\wechat;

class WechatModule extends \seecms\lib\module\ModuleConfig
{
    protected $auth = 'seecms';

    protected $name = '微信公众号';

    protected $description = '微信公众号开发';

    protected $category = 1;

    protected $home = 'https://gitee.com/magein/php-seecms-wechat';

    public function lang(): string
    {
        return __DIR__ . '/lang';
    }

    public function view(): string
    {
        return __DIR__ . '/view';
    }

    public function controller(): array
    {
        return [
            'wechat' => \seecms\wechat\controller\Wechat::class,
            'user' => \seecms\wechat\controller\User::class
        ];
    }

    public function publish(): ?\seecms\lib\module\ModulePublish
    {
        return new WechatPublish();
    }
}